package com.eshop.dao;

import com.eshop.model.Goods;

import java.util.Comparator;
import java.util.List;

public interface GoodsDao {
    public List<Goods> queryGoodsByIsToday(int isToday);

    public List<Goods> queryGoodsByCateId(int cateId);

    public List<Goods> queryGoodsByCateIdSort(int cateId, Comparator<? super Goods> comparator);

    public List<Goods> queryGoodsBySales(int num);

    public List<Goods> queryGoodsByLatestDate();

    public Goods queryGoodsById(int goodsId);

    public List<Goods> queryGoodsByTop6Sales();

    public List<Goods> fuzzyEnquiry(String name);

    public List<Goods> fuzzyEnquirySort(String name,  Comparator<? super Goods> comparator);
}
